<?php


namespace app\api\validate;

use think\Validate;


class TestValidate extends BaseValidate
{

    // 固定的属性名 $rule 代表验证规则
    protected  $rule = [
        'name' => 'require|max:10',
        'email' => 'email'
    ];
}